package edu.sctu.zhangwang.month201506.day20150605.test;

import java.util.Calendar;
import java.util.Date;

/**
 * Created by Administrator on 2015/6/6.
 */
public class JudgeTime {

    public Date date1;
    public long getNowTime(){
        Date date = new Date();
        long dateTime = date.getTime();
        return dateTime;
    }
    public long setTime() {
//        Thread.sleep(3000);
        Calendar calendar = Calendar.getInstance();
        calendar.set(2015,05,04,11,23);
//        System.out.println(calendar.getTime().getTime());
        long a = calendar.getTime().getTime();
        return  a;
    }
    public long cha(){
        long y = getNowTime() - setTime();

        return y;
    }
}
//判断一下2015-6-4  11时23分距现在多久，